/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-06-07     Wangjiangbo       the first version
 */
#include <bsp/bsp_spi.h>
#include <drv_spi.h>

#define DBG_TAG "spi"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>

int bsp_spi_init(void)
{
    rt_hw_spi_device_attach(SPI_BUS_NAME, W25Q_SPI_DEVICE_NAME, GPIOD, GPIO_PIN_2);
    return RT_EOK;
}

